Optimal. Leaf size=49 \[ \frac {2 c (b c-a d) \log \left (c+d \sqrt {x}\right )}{d^3}-\frac {2 \sqrt {x} (b c-a d)}{d^2}+\frac {b x}{d} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.05, antiderivative size = 49, normalized size of antiderivative = 1.00, number of steps used = 3, number of rules used = 2, integrand size = 21, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.095, Rules used = {376, 77} \[ -\frac {2 \sqrt {x} (b c-a d)}{d^2}+\frac {2 c (b c-a d) \log \left (c+d \sqrt {x}\right )}{d^3}+\frac {b x}{d} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 77
Rule 376
Rubi steps
\begin {align*} \int \frac {a+b \sqrt {x}}{c+d \sqrt {x}} \, dx &=2 \operatorname {Subst}\left (\int \frac {x (a+b x)}{c+d x} \, dx,x,\sqrt {x}\right )\\ &=2 \operatorname {Subst}\left (\int \left (\frac {-b c+a d}{d^2}+\frac {b x}{d}+\frac {c (b c-a d)}{d^2 (c+d x)}\right ) \, dx,x,\sqrt {x}\right )\\ &=-\frac {2 (b c-a d) \sqrt {x}}{d^2}+\frac {b x}{d}+\frac {2 c (b c-a d) \log \left (c+d \sqrt {x}\right )}{d^3}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A] time = 0.07, size = 41, normalized size = 0.84 \[ \frac {2 (a d-b c) \left (d \sqrt {x}-c \log \left (c+d \sqrt {x}\right )\right )}{d^3}+\frac {b x}{d} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
fricas [A] time = 0.97, size = 48, normalized size = 0.98 \[ \frac {b d^{2} x + 2 \, {\left (b c^{2} - a c d\right )} \log \left (d \sqrt {x} + c\right ) - 2 \, {\left (b c d - a d^{2}\right )} \sqrt {x}}{d^{3}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [A] time = 0.19, size = 49, normalized size = 1.00 \[ \frac {b d x - 2 \, b c \sqrt {x} + 2 \, a d \sqrt {x}}{d^{2}} + \frac {2 \, {\left (b c^{2} - a c d\right )} \log \left ({\left | d \sqrt {x} + c \right |}\right )}{d^{3}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [A] time = 0.05, size = 59, normalized size = 1.20 \[ -\frac {2 a c \ln \left (d \sqrt {x}+c \right )}{d^{2}}+\frac {2 b \,c^{2} \ln \left (d \sqrt {x}+c \right )}{d^{3}}+\frac {b x}{d}+\frac {2 a \sqrt {x}}{d}-\frac {2 b c \sqrt {x}}{d^{2}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [A] time = 0.64, size = 47, normalized size = 0.96 \[ \frac {b d x - 2 \, {\left (b c - a d\right )} \sqrt {x}}{d^{2}} + \frac {2 \, {\left (b c^{2} - a c d\right )} \log \left (d \sqrt {x} + c\right )}{d^{3}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [B] time = 0.07, size = 49, normalized size = 1.00 \[ \sqrt {x}\,\left (\frac {2\,a}{d}-\frac {2\,b\,c}{d^2}\right )+\frac {\ln \left (c+d\,\sqrt {x}\right )\,\left (2\,b\,c^2-2\,a\,c\,d\right )}{d^3}+\frac {b\,x}{d} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [A] time = 0.30, size = 82, normalized size = 1.67 \[ \begin {cases} - \frac {2 a c \log {\left (\frac {c}{d} + \sqrt {x} \right )}}{d^{2}} + \frac {2 a \sqrt {x}}{d} + \frac {2 b c^{2} \log {\left (\frac {c}{d} + \sqrt {x} \right )}}{d^{3}} - \frac {2 b c \sqrt {x}}{d^{2}} + \frac {b x}{d} & \text {for}\: d \neq 0 \\\frac {a x + \frac {2 b x^{\frac {3}{2}}}{3}}{c} & \text {otherwise} \end {cases} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________